<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@taglib prefix="shiro" uri="http://shiro.apache.org/tags" %>
<%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%@page isELIgnored="false"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
      <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title></title>
	<title></title>
    <link href="${pageContext.request.contextPath}/static/assets/css/bootstrap.css" rel="stylesheet" />
    <link href="${pageContext.request.contextPath}/static/assets/css/font-awesome.css" rel="stylesheet" />
    <link href="${pageContext.request.contextPath}/static/assets/css/custom-styles.css" rel="stylesheet" />
   <link rel="stylesheet" href="${pageContext.request.contextPath}/static/assets/css/profile.css">
    <link href="${pageContext.request.contextPath}/static/assets/js/dataTables/dataTables.bootstrap.css" rel="stylesheet" />
</head>
<body>
    <div id="wrapper">
        <div id="page-wrapper" >
          <div id="page-inner">
			 <div class="row">
                    <div class="col-md-12">
                        <h1 class="page-header">
                           withdrawal <small>details</small>
                        </h1>
                    </div>
              </div> 
            <div class="row">
              <div class="col-md-12">
                    <div class="col-sm-12">  
                                <div class="col-xs-12 col-sm-8 profile-name col-lg-7" >
                                  <h2>小明 <span class="pull-right social-profile"> <em class="entypo-facebook-circled"></em> <em class="entypo-twitter-circled"></em> <em class="entypo-linkedin-circled"></em> <em class="entypo-github-circled"></em> <em class="entypo-gplus-circled"></em> </span> </h2>
                                  <hr>
                                  <form:form method="post" commandName="Complain" >
                                  <form:hidden path="id" value="${Complain.id}"/>
                                    <dl class="dl-horizontal-profile">
                                    	<dt>订单编号</dt>
                                        <dd>${ Complain.orderCode}</dd>                                       
                                        <dt>投诉人编号</dt>
                                        <dd>${ Complain.sponsorCode}</dd>                                        
                                        <dt>被投诉人编号</dt>
                                         <dd>${ Complain.recipientCode}</dd>                                         
                                        <dt>投诉内容</dt>
                                        <dd>${ Complain.content}</dd>                                        
                                         <dt>投诉时间</dt>
                                        <dd><fmt:formatDate value="${Complain.complainTime }" pattern="yyyy-MM-dd HH:mm"/></dd>                                        
                                        <dt>投诉处理意见</dt>        
                                        <dd><form:textarea path="handleResult" /></dd>                                                                                                                   
                                        <dt>处理人</dt>
                                        <dd><form:input path="handler" /></dd>
                                        <dd>${ user.username}</dd>
                                         <%--  <dt>处理时间</dt>
                                         <dd><form:input path="handeTime" id="time1" onClick="return Calendar('time1');" class="text_time" /></dd>   --%>                                    
                                        <dt>投诉状态</dt>
                                        <dd><form:select path="complainState" id="complState">                                      
                                        	<form:option  value="0" label="未处理" />
                                        	<form:option  value="1" label="已处理" />  
                                        </form:select></dd>
                                        <div class="sss" style="color:#FF0004"></div>                                     
                                    </dl>
                                    <td><input type="submit" value="提交" onclick="sb()"></td>
                                     </form:form>										
                               </div>
   						</div>
   					</div>
 				</div>  
   			</div>
   		</div>
   </div>
   <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
  <script src="https://netdna.bootstrapcdn.com/bootstrap/3.0.0/js/bootstrap.min.js"></script>
  <script src="js/zoom.js"></script>
    <script src="${pageContext.request.contextPath}/static/assets/js/jquery-1.10.2.js"></script>
    <script src="${pageContext.request.contextPath}/static/assets/js/bootstrap.min.js"></script>
    <script src="${pageContext.request.contextPath}/static/assets/js/jquery.metisMenu.js"></script>
    <script src="${pageContext.request.contextPath}/static/assets/js/dataTables/jquery.dataTables.js"></script>
    <script src="${pageContext.request.contextPath}/static/assets/js/dataTables/dataTables.bootstrap.js"></script>
     <script type="text/javascript" src="${pageContext.request.contextPath}/static/js/showdate.js"></script>
        <script>
            $(document).ready(function () {

                if($("#complState").val() == '1') {
                	$("#complState").attr("disabled", true);
                }
                if($("#complState").val() == '0') {
                	$("#complState").attr("disabled", false);
                }
                
            });
    </script>
         <!-- Custom Js -->
    <script src="${pageContext.request.contextPath}/static/assets/js/custom-scripts.js"></script>
    
<script> $(document).ready(function(){
                
                $(".llll").click(function(){
                    alert("Value: " +$("#name").val());
                });
            });</script>
<script>
function sub(){
	var lll=document.getElementById("note").value;
	var ww=$("<dd></dd>").text(lll);
	var ee=$("<dt></dt>").text("备注")
	$(".sss").append(ee,ww)
	}
function sb() {
	if (window.confirm("是否确认要提交?")) { 
		// 确认时做的操作 
		alert("点的确认");
	} else { 
		// 取消时做的操作 
		alert("点的取消");
	} 
	}
</script>                             
</body>
</html>
